package org.hypirinha.html.output.features;

import java.nio.charset.Charset;

public class NamedEncoding implements Encoding {
    private String charsetName;

    public NamedEncoding(String charsetName) {
        this.charsetName = charsetName;
    }

    public Charset getCharset() {
        return Charset.forName(charsetName);
    }

}
